package com.eipv.multidatasource.mapper.oracle;

import com.eipv.component.mybatis.base.condition.Condition;
import com.eipv.component.mybatis.base.mapper.BaseMapper;
import com.eipv.multidatasource.entity.Column;
import com.eipv.multidatasource.entity.Table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;

@Mapper
public interface OracleTableMapper extends BaseMapper<Table, String> {

    List<Column> selectColumnsByTable(@Param("tableName") String tableName);

    long countData(@Param("tableName") String tableName);

    List<LinkedHashMap> selectDataList(@Param("condition") Condition condition);
}
